package com.lxyk.yygh.hosp.repository;

import com.lxyk.yygh.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 操作科室
 */
@Repository
public interface DepartmentRepository extends MongoRepository<Department,String> {
    //根据hoscode和depcode唯一确定一个Department对象
    Department getDepartmentByHoscodeAndDepcode(String hoscode,String depcode);
}
